package beans.factorys;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * Created by ZhaiGuaili on 2018/7/20.
 */
public class PropertyValue {

    private final String name;
    private final Object value;

    private boolean whetherConverted = false;

    private Object convertedvalue;

    public PropertyValue (String name,Object value){
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public Object getValue() {
        return value;
    }

    public synchronized boolean isConverted(){
        return this.whetherConverted;
    }

    public Object getConvertedvalue() {
        return convertedvalue;
    }

    public void setConvertedvalue(Object convertedvalue) {
        this.whetherConverted = true;
        this.convertedvalue = convertedvalue;
    }
}
